import request from '@/utils/request'

// 查询签约列表
export function listSign(query) {
  return request({
    url: '/system/sign/list',
    method: 'get',
    params: query
  })
}

// 查询签约详细
export function getSign(id) {
  return request({
    url: '/system/sign/' + id,
    method: 'get'
  })
}

// 新增签约
export function addSign(data) {
  return request({
    url: '/system/sign',
    method: 'post',
    data: data
  })
}

// 修改签约
export function updateSign(data) {
  return request({
    url: '/system/sign',
    method: 'put',
    data: data
  })
}

// 删除签约
export function delSign(id) {
  return request({
    url: '/system/sign/' + id,
    method: 'delete'
  })
}

export function courseList() {
  return request({
    url: '/system/course/getCourseList',
    method: 'get'
  })
}

// 查询课程分类信息列表
export function studentList() {
  return request({
    url: '/system/student/getStudentList',
    method: 'get'
  })
}
